package cn.echo.modules.sys.entity;

import cn.echo.common.baseentity.BaseEntity;

/**
 * @author 王飞
 * @Date 2017-4-13
 * @version 1.0
 * 该类是对应数据库中cms_area的具体实体类，
 * 继承了BaseEntity类。
 */
public class Area extends BaseEntity {
    private String name;
    private String parentId;
    private String code;
    private char type;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public char getType() {
        return type;
    }

    public void setType(char type) {
        this.type = type;
    }

    @Override
    public String toString()
    {
        return "Area{" +
                "id='" + super.getId() + '\''
                + "name,"+name
                +",parent_id"+parentId+","
                + ",code"+code
                + ",type"+type
                + ", createBy=" + super.getCreateBy()
                + ", createDate=" + super.getCreateDate() +
                ", updateBy=" + super.getUpdateBy()+
                ", updateDate=" + super.getUpdateDate() +
                ", delFlag=" + super.getDelFlag()+
                '}';
    }
}
